import {ROLE_TYPE,GRADE_TYPE} from "@/config/enum"
export const modalFormConfig = {
  labelWidth: "100px",
  itemLayout: {
    padding: "10px 40px",
  },
  colLayout: { span: 24 },
  alwaysShow: true,
  formItems: [
    {
      field: "name",
      type: "input",
      label: "用户名",
      placeholder: "请输入用户名",
      rules: [{ required: true, message: "请输入用户名", trigger: "blur" }],
    },
    {
      field: "phone",
      type: "number",
      label: "电话号码",
      placeholder: "请输入电话号码",
      rules: [{ required: true, message: "请输入电话号码", trigger: "blur" }],
    },
    {
      field: 'roleId',
      type: 'select',
      label: '选择角色',
      placeholder: '请选择角色',
      rules: [{ required: true, message: '请选择角色', trigger: 'change' }],
      options: ROLE_TYPE
    },
    {
      field: 'gradeId',
      type: 'select',
      label: '选择等级',
      placeholder: '请选择等级',
      rules: [{ required: true, message: '请选择等级', trigger: 'change' }],
      options: GRADE_TYPE
    },
  ],
};
